<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>数据字典-数据库 | AndPHP</title><meta name="author" content="Da Xiong"><meta name="copyright" content="Da Xiong"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="admins【管理员表】   字段名 类型 描述 允许空 默认值    id int  NO    username varchar 用户名 NO    nickname varchar 昵称 NO    role_id int 角色ID NO 0   password varchar 密码 NO    remember_token varchar  YES    status tinyint 状">
<meta property="og:type" content="article">
<meta property="og:title" content="数据字典-数据库">
<meta property="og:url" content="http://ladmin.test/dictionary/database/index.html">
<meta property="og:site_name" content="AndPHP">
<meta property="og:description" content="admins【管理员表】   字段名 类型 描述 允许空 默认值    id int  NO    username varchar 用户名 NO    nickname varchar 昵称 NO    role_id int 角色ID NO 0   password varchar 密码 NO    remember_token varchar  YES    status tinyint 状">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://ladmin.test/img/avatar.png">
<meta property="article:published_time" content="2021-04-07T17:42:38.000Z">
<meta property="article:modified_time" content="2021-04-07T17:42:53.497Z">
<meta property="article:author" content="Da Xiong">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://ladmin.test/img/avatar.png"><link rel="shortcut icon" href="/docs/img/andphp-logo.png"><link rel="canonical" href="http://ladmin.test/dictionary/database/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//hm.baidu.com"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/docs/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?64fefb7a6caf5dffe96879edad4e0d78";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script><script>const GLOBAL_CONFIG = { 
  root: '/docs/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"简"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: true,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: {"limitCount":100,"languages":{"author":"作者: Da Xiong","link":"链接: ","source":"来源: AndPHP","info":"著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。"}},
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
    },
    fancybox: {
      js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
      css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isanchor: true
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = { 
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2021-04-08 01:42:53'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    })(window)</script><meta name="generator" content="Hexo 5.2.0"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="author-avatar"><img class="avatar-img" src="/docs/img/avatar.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/docs/archives/"><div class="headline">文章</div><div class="length-num">14</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/docs/tags/"><div class="headline">标签</div><div class="length-num">2</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/docs/categories/"><div class="headline">分类</div><div class="length-num">8</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/docs/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/docs/archives/"><i class="fa-fw fas fa-archive"></i><span> 历史</span></a></div><div class="menus_item"><a class="site-page" href="/docs/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/docs/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/docs/artitalk/"><i class="fa-fw fa fa-at"></i><span> 动态</span></a></div><div class="menus_item"><a class="site-page" href="/docs/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://i.loli.net/2019/11/10/T7Mu8Aod3egmC4Q.png')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/docs/">AndPHP</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/docs/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/docs/archives/"><i class="fa-fw fas fa-archive"></i><span> 历史</span></a></div><div class="menus_item"><a class="site-page" href="/docs/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/docs/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/docs/artitalk/"><i class="fa-fw fa fa-at"></i><span> 动态</span></a></div><div class="menus_item"><a class="site-page" href="/docs/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">数据字典-数据库</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2021-04-07T17:42:38.000Z" title="发表于 2021-04-08 01:42:38">2021-04-08</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2021-04-07T17:42:53.497Z" title="更新于 2021-04-08 01:42:53">2021-04-08</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/docs/categories/%E6%95%B0%E6%8D%AE%E5%AD%97%E5%85%B8/">数据字典</a><i class="fas fa-angle-right post-meta-separator"></i><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/docs/categories/%E6%95%B0%E6%8D%AE%E5%AD%97%E5%85%B8/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="数据字典-数据库"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h3 id="admins【管理员表】"><a href="#admins【管理员表】" class="headerlink" title="admins【管理员表】"></a>admins【管理员表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>username</td>
<td>varchar</td>
<td>用户名</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>nickname</td>
<td>varchar</td>
<td>昵称</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>role_id</td>
<td>int</td>
<td>角色ID</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>password</td>
<td>varchar</td>
<td>密码</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>remember_token</td>
<td>varchar</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>status</td>
<td>tinyint</td>
<td>状态1正常2锁定</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>updated_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="adsenses【广告表】"><a href="#adsenses【广告表】" class="headerlink" title="adsenses【广告表】"></a>adsenses【广告表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>title</td>
<td>varchar</td>
<td>名称</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>group</td>
<td>tinyint</td>
<td>位置</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>thumb</td>
<td>varchar</td>
<td>广告图</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>link</td>
<td>varchar</td>
<td>链接</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>target</td>
<td>tinyint</td>
<td>新窗口1是2否</td>
<td>NO</td>
<td>2</td>
</tr>
<tr>
<td>status</td>
<td>tinyint</td>
<td>状态1正常2锁定</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>sort</td>
<td>int</td>
<td>排序</td>
<td>NO</td>
<td>0</td>
</tr>
</tbody></table>
<h3 id="article-categorys【类目表】"><a href="#article-categorys【类目表】" class="headerlink" title="article_categorys【类目表】"></a>article_categorys【类目表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>name</td>
<td>varchar</td>
<td>类目名称</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>pid</td>
<td>int</td>
<td>上级分类ID</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>sort</td>
<td>tinyint</td>
<td>类目排序</td>
<td>NO</td>
<td>0</td>
</tr>
</tbody></table>
<h3 id="articles【文章表】"><a href="#articles【文章表】" class="headerlink" title="articles【文章表】"></a>articles【文章表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>thumb</td>
<td>varchar</td>
<td>封面图</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>title</td>
<td>varchar</td>
<td>标题</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>cate_id</td>
<td>int</td>
<td>分类ID</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>author</td>
<td>varchar</td>
<td>编辑人员</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>source</td>
<td>varchar</td>
<td>来源</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>source_link</td>
<td>varchar</td>
<td>来源链接</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>describe</td>
<td>varchar</td>
<td>摘要</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>status</td>
<td>tinyint</td>
<td>状态1正常2锁定</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>content</td>
<td>text</td>
<td>内容</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>good</td>
<td>tinyint</td>
<td>推荐：1否2是</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>view</td>
<td>int</td>
<td>浏览量</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>updated_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="configs【配置表】"><a href="#configs【配置表】" class="headerlink" title="configs【配置表】"></a>configs【配置表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>name</td>
<td>varchar</td>
<td>标识</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>setting</td>
<td>varchar</td>
<td>参数值</td>
<td>NO</td>
<td></td>
</tr>
</tbody></table>
<h3 id="consultation-records【问诊对话表】"><a href="#consultation-records【问诊对话表】" class="headerlink" title="consultation_records【问诊对话表】"></a>consultation_records【问诊对话表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>consultation_id</td>
<td>int</td>
<td></td>
<td>YES</td>
<td>0</td>
</tr>
<tr>
<td>asker_id</td>
<td>int</td>
<td>提问者iD</td>
<td>YES</td>
<td>0</td>
</tr>
<tr>
<td>answer_id</td>
<td>int</td>
<td>回答者ID</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>content</td>
<td>varchar</td>
<td>对话内容</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>created_at</td>
<td>datetime</td>
<td>创建时间</td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="consultations【问诊工单表】"><a href="#consultations【问诊工单表】" class="headerlink" title="consultations【问诊工单表】"></a>consultations【问诊工单表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>user_id</td>
<td>int</td>
<td>用户iD</td>
<td>YES</td>
<td>0</td>
</tr>
<tr>
<td>describe</td>
<td>varchar</td>
<td>描述</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>images</td>
<td>text</td>
<td>图片uri，逗号分隔</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>created_at</td>
<td>datetime</td>
<td>创建时间</td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="feedback【意见反馈表】"><a href="#feedback【意见反馈表】" class="headerlink" title="feedback【意见反馈表】"></a>feedback【意见反馈表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>user_id</td>
<td>int</td>
<td>反馈用户id</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>type_name</td>
<td>varchar</td>
<td>反馈类型名称</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>content</td>
<td>varchar</td>
<td>反馈内容</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>phone</td>
<td>varchar</td>
<td>电话号码</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>updated_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="groups【分组表】"><a href="#groups【分组表】" class="headerlink" title="groups【分组表】"></a>groups【分组表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>user_id</td>
<td>int</td>
<td>用户ID</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>name</td>
<td>varchar</td>
<td>分组名称</td>
<td>NO</td>
<td></td>
</tr>
</tbody></table>
<h3 id="integrals【积分表】"><a href="#integrals【积分表】" class="headerlink" title="integrals【积分表】"></a>integrals【积分表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>user_id</td>
<td>int</td>
<td>用户ID</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>username</td>
<td>varchar</td>
<td>用户名</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>mumber</td>
<td>int</td>
<td>积分数量</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>type</td>
<td>tinyint</td>
<td>状态1加分2减分</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>note</td>
<td>varchar</td>
<td>积分备注</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="levels【用户等级表】"><a href="#levels【用户等级表】" class="headerlink" title="levels【用户等级表】"></a>levels【用户等级表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>name</td>
<td>varchar</td>
<td>等级名称</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>cost</td>
<td>decimal</td>
<td>升级金额</td>
<td>NO</td>
<td>0.00</td>
</tr>
<tr>
<td>icon</td>
<td>varchar</td>
<td>等级图标</td>
<td>NO</td>
<td></td>
</tr>
</tbody></table>
<h3 id="logins【登录日志表】"><a href="#logins【登录日志表】" class="headerlink" title="logins【登录日志表】"></a>logins【登录日志表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>username</td>
<td>varchar</td>
<td>用户名</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>nickname</td>
<td>varchar</td>
<td>昵称</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>admin_id</td>
<td>int</td>
<td>管理员ID</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>ip</td>
<td>varchar</td>
<td>登录IP</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>address</td>
<td>varchar</td>
<td>IP地址</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>login_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="members【成员表】"><a href="#members【成员表】" class="headerlink" title="members【成员表】"></a>members【成员表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>user_id</td>
<td>int</td>
<td>用户ID</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>group_id</td>
<td>int</td>
<td>分组ID</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>username</td>
<td>varchar</td>
<td>姓名</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>mobile</td>
<td>varchar</td>
<td>电话</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>height</td>
<td>varchar</td>
<td>身高</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>weight</td>
<td>varchar</td>
<td>体重</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>age</td>
<td>tinyint</td>
<td>年龄</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>sex</td>
<td>tinyint</td>
<td>1男2女</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>updated_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>id_card</td>
<td>varchar</td>
<td>身份证号</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>introduce</td>
<td>varchar</td>
<td>个人介绍</td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="ocr【化验单表】"><a href="#ocr【化验单表】" class="headerlink" title="ocr【化验单表】"></a>ocr【化验单表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>user_id</td>
<td>int</td>
<td>用户id</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>group_id</td>
<td>int</td>
<td>分组id</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>img</td>
<td>varchar</td>
<td>检查单图片</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>name</td>
<td>varchar</td>
<td>姓名</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>sex_name</td>
<td>varchar</td>
<td>性别</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>age</td>
<td>int</td>
<td>年龄</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>check_jg</td>
<td>varchar</td>
<td>检查机构</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>check_time</td>
<td>date</td>
<td>检查时间</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>pro_name</td>
<td>varchar</td>
<td>判定项目（血常规、便常规、尿常规）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>updated_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="ocr-blood【化验单-血常规表】"><a href="#ocr-blood【化验单-血常规表】" class="headerlink" title="ocr_blood【化验单-血常规表】"></a>ocr_blood【化验单-血常规表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>ocr_id</td>
<td>int</td>
<td>化验单id</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>user_id</td>
<td>int</td>
<td>用户id</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>wbc</td>
<td>varchar</td>
<td>白细胞数目（WBC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>neut</td>
<td>varchar</td>
<td>中性细胞数（NEUT#）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>lym</td>
<td>varchar</td>
<td>淋巴细胞数（LYM）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>mono</td>
<td>varchar</td>
<td>单核细胞（MONO#）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>eo</td>
<td>varchar</td>
<td>嗜酸性粒细胞（EO#）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>baso</td>
<td>varchar</td>
<td>嗜碱性粒细胞（BASO#）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>neut_rate</td>
<td>varchar</td>
<td>中性细胞比率（NEUT%）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>lym_rate</td>
<td>varchar</td>
<td>淋巴细胞比率（LYM%）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>mono_rate</td>
<td>varchar</td>
<td>单核细胞比率（MONO%）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>eo_rate</td>
<td>varchar</td>
<td>嗜酸性粒细胞比率（EO%）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>baso_rate</td>
<td>varchar</td>
<td>嗜碱性粒细胞比率（BASO%）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>rbc</td>
<td>varchar</td>
<td>红细胞（RBC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>hgb</td>
<td>varchar</td>
<td>血红蛋白（HGB）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>hct</td>
<td>varchar</td>
<td>红细胞压积（HCT）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>mcv</td>
<td>varchar</td>
<td>红细胞平均体积（MCV）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>mchc</td>
<td>varchar</td>
<td>平均血红蛋白量（MCHC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>rdw_cv</td>
<td>varchar</td>
<td>红细胞分布宽度变异系数（RDW-CV)）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>rdw_sd</td>
<td>varchar</td>
<td>红细胞分布宽度标准差（RDW-SD）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>plt</td>
<td>varchar</td>
<td>血小板（PLT）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>mpv</td>
<td>varchar</td>
<td>平均血小板体积（MPV）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>pdw</td>
<td>varchar</td>
<td>血小板宽度（PDW）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>pct</td>
<td>varchar</td>
<td>血小板压积（PCT）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>p_lcr</td>
<td>varchar</td>
<td>大型血小板比率（P-LCR）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>updated_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="ocr-then【化验单-便常规表】"><a href="#ocr-then【化验单-便常规表】" class="headerlink" title="ocr_then【化验单-便常规表】"></a>ocr_then【化验单-便常规表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>ocr_id</td>
<td>int</td>
<td>化验单id</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>user_id</td>
<td>int</td>
<td>用户id</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>character</td>
<td>varchar</td>
<td>性状（Character）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>color</td>
<td>varchar</td>
<td>颜色（Color）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>ob</td>
<td>varchar</td>
<td>隐血（OB）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>nyl</td>
<td>varchar</td>
<td>粘液（NY1）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>wbc</td>
<td>varchar</td>
<td>白细胞（WBC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>rbc</td>
<td>varchar</td>
<td>红细胞（RBC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>pyocyte</td>
<td>varchar</td>
<td>脓细胞（Pyocyte）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>btsxb</td>
<td>varchar</td>
<td>吞噬细胞（BTSXB）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>hcl</td>
<td>varchar</td>
<td>蛔虫卵（HCL）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>gcl</td>
<td>varchar</td>
<td>钩虫卵（GCL）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>ncl</td>
<td>varchar</td>
<td>蛲虫卵（NCL）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>bcl</td>
<td>varchar</td>
<td>鞭虫卵（BCL）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>xxcl</td>
<td>varchar</td>
<td>血吸虫卵（XXCL）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>gxcl</td>
<td>varchar</td>
<td>肝吸虫卵（GXCL）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>cdc</td>
<td>varchar</td>
<td>肠滴虫（CDC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>dfkl</td>
<td>varchar</td>
<td>淀粉颗粒（DFKL）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>fatty_oils</td>
<td>varchar</td>
<td>脂肪滴（Fatty oils）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>other</td>
<td>varchar</td>
<td>其他（other）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>rota_v</td>
<td>varchar</td>
<td>快速轮状病毒鉴定（ROTA.V）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>xbd</td>
<td>varchar</td>
<td>腺病毒抗原（XBD）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>updated_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="ocr-urine【化验单-尿常规表】"><a href="#ocr-urine【化验单-尿常规表】" class="headerlink" title="ocr_urine【化验单-尿常规表】"></a>ocr_urine【化验单-尿常规表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>ocr_id</td>
<td>int</td>
<td>化验单id</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>user_id</td>
<td>int</td>
<td>用户id</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>color</td>
<td>varchar</td>
<td>颜色（Color）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>clarity</td>
<td>varchar</td>
<td>清晰度（Clarity）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>glu</td>
<td>varchar</td>
<td>尿糖（GLU）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>pro</td>
<td>varchar</td>
<td>尿蛋白（PRO）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>malb</td>
<td>varchar</td>
<td>尿微量白蛋白（MALB）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>bil</td>
<td>varchar</td>
<td>尿胆红素（BIL）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>uro</td>
<td>varchar</td>
<td>尿胆原（URO）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>ph</td>
<td>varchar</td>
<td>尿PH（PH）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>sg</td>
<td>varchar</td>
<td>尿比重（SG）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>ob</td>
<td>varchar</td>
<td>尿隐血（OB）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>ket</td>
<td>varchar</td>
<td>尿酮体（KET）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>nit</td>
<td>varchar</td>
<td>亚硝酸盐（NIT）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>leu</td>
<td>varchar</td>
<td>白细胞酶活性（LEU）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>wbc</td>
<td>varchar</td>
<td>尿白细胞计数（WBC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>wbcc</td>
<td>varchar</td>
<td>白细胞团（WBCC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>rbc</td>
<td>varchar</td>
<td>尿红细胞计数（RBC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>cre</td>
<td>varchar</td>
<td>尿肌酐（CRE）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>a_c</td>
<td>varchar</td>
<td>白蛋白肌酐比（A/C）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>ec</td>
<td>varchar</td>
<td>上皮细胞计数（EC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>cast</td>
<td>varchar</td>
<td>管型计数（CAST）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>uncc</td>
<td>varchar</td>
<td>未分类管型（UNCC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>bact</td>
<td>varchar</td>
<td>细菌计数（BACT）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>ylc</td>
<td>varchar</td>
<td>酵母菌（YLC）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>xtal</td>
<td>varchar</td>
<td>结晶（XTAL）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>uncx</td>
<td>varchar</td>
<td>未分类结晶（UNCX）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>ls</td>
<td>varchar</td>
<td>尿沉渣（LS）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>sperm</td>
<td>varchar</td>
<td>精子检查（SPERM）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>musg</td>
<td>varchar</td>
<td>黏液丝（MUSG）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>vc</td>
<td>varchar</td>
<td>维生素C（Vc）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>ny_gx</td>
<td>varchar</td>
<td>镜检管型（NY-GX）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>sg_spcj</td>
<td>varchar</td>
<td>镜检上皮细胞（SG-SPCJ）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>sg_ebcj</td>
<td>varchar</td>
<td>镜检红细胞（SG-RBCJ）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>sg_wbcj</td>
<td>varchar</td>
<td>镜检白细胞（SG-WBCJ）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>sg_hlcj</td>
<td>varchar</td>
<td>镜检脓细胞（SG-HLCJ）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>condct</td>
<td>varchar</td>
<td>电导率（Condct）</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>updated_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="pages【单页表】"><a href="#pages【单页表】" class="headerlink" title="pages【单页表】"></a>pages【单页表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>title</td>
<td>varchar</td>
<td>标题</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>group</td>
<td>int</td>
<td>分组ID:1关于我们2常见问题</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>content</td>
<td>text</td>
<td>内容</td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>updated_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
</tbody></table>
<h3 id="partners【合作商表】"><a href="#partners【合作商表】" class="headerlink" title="partners【合作商表】"></a>partners【合作商表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>title</td>
<td>varchar</td>
<td>名称</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>thumb</td>
<td>varchar</td>
<td>广告图</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>link</td>
<td>varchar</td>
<td>链接</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>target</td>
<td>tinyint</td>
<td>新窗口1是2否</td>
<td>NO</td>
<td>2</td>
</tr>
<tr>
<td>status</td>
<td>tinyint</td>
<td>状态1正常2锁定</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>sort</td>
<td>int</td>
<td>排序</td>
<td>NO</td>
<td>0</td>
</tr>
</tbody></table>
<h3 id="roles【角色表】"><a href="#roles【角色表】" class="headerlink" title="roles【角色表】"></a>roles【角色表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>name</td>
<td>varchar</td>
<td>角色名称</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>describe</td>
<td>varchar</td>
<td>描述</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>status</td>
<td>tinyint</td>
<td>状态1正常2锁定</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>access_ids</td>
<td>varchar</td>
<td>权限ID</td>
<td>NO</td>
<td></td>
</tr>
</tbody></table>
<h3 id="rules【规则表】"><a href="#rules【规则表】" class="headerlink" title="rules【规则表】"></a>rules【规则表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>name</td>
<td>varchar</td>
<td>名称</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>word</td>
<td>varchar</td>
<td>标识</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>unit</td>
<td>varchar</td>
<td>单位</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>project_id</td>
<td>int</td>
<td>项目ID：1血常规2尿常规3便常规4彩超5CT检查</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>range</td>
<td>varchar</td>
<td>参考范围</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>effect</td>
<td>varchar</td>
<td>临床意义</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>factor</td>
<td>varchar</td>
<td>影响因素</td>
<td>NO</td>
<td></td>
</tr>
</tbody></table>
<h3 id="users【用户表】"><a href="#users【用户表】" class="headerlink" title="users【用户表】"></a>users【用户表】</h3><table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>描述</th>
<th>允许空</th>
<th>默认值</th>
</tr>
</thead>
<tbody><tr>
<td>id</td>
<td>int</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>username</td>
<td>varchar</td>
<td>用户名</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>openid</td>
<td>varchar</td>
<td>openid</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>email</td>
<td>varchar</td>
<td>邮箱</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>avatar</td>
<td>varchar</td>
<td>头像</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>city</td>
<td>varchar</td>
<td>城市</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>province</td>
<td>varchar</td>
<td>省份</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>country</td>
<td>varchar</td>
<td>国家</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>sex</td>
<td>tinyint</td>
<td>性别 0：未知、1：男、2：女</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>integral</td>
<td>int</td>
<td>积分</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>balance</td>
<td>decimal</td>
<td>余额</td>
<td>NO</td>
<td>0.00</td>
</tr>
<tr>
<td>money</td>
<td>decimal</td>
<td>总金额</td>
<td>NO</td>
<td>0.00</td>
</tr>
<tr>
<td>agent_one</td>
<td>int</td>
<td>一级代理IO</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>agent_two</td>
<td>int</td>
<td>二级代理ID</td>
<td>NO</td>
<td>0</td>
</tr>
<tr>
<td>level</td>
<td>tinyint</td>
<td>会员等级</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>mobile</td>
<td>varchar</td>
<td>手机号</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>status</td>
<td>tinyint</td>
<td>状态1正常2锁定</td>
<td>NO</td>
<td>1</td>
</tr>
<tr>
<td>created_at</td>
<td>timestamp</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>login_at</td>
<td>datetime</td>
<td></td>
<td>YES</td>
<td></td>
</tr>
<tr>
<td>remember_token</td>
<td>varchar</td>
<td></td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>nickname</td>
<td>varchar</td>
<td>昵称</td>
<td>NO</td>
<td></td>
</tr>
<tr>
<td>age</td>
<td>int</td>
<td>年龄</td>
<td>NO</td>
<td>0</td>
</tr>
</tbody></table>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="mailto:undefined">Da Xiong</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="http://ladmin.test/dictionary/database/">http://ladmin.test/dictionary/database/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="http://ladmin.test" target="_blank">AndPHP</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"><div class="social-share" data-image="/docs/img/avatar.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button button--animated"><i class="fas fa-qrcode"></i> 打赏</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="/docs/img/wechat.png" target="_blank"><img class="post-qr-code-img" src="/docs/img/wechat.png" alt="微信"/></a><div class="post-qr-code-desc">微信</div></li><li class="reward-item"><a href="/docs/img/alipay.png" target="_blank"><img class="post-qr-code-img" src="/docs/img/alipay.png" alt="支付宝"/></a><div class="post-qr-code-desc">支付宝</div></li></ul></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/docs/api/member/update/"><img class="prev-cover" src="https://i.loli.net/2019/11/10/T7Mu8Aod3egmC4Q.png" onerror="onerror=null;src='/docs/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">更新用户信息</div></div></a></div><div class="next-post pull-right"><a href="/docs/api/group/"><img class="next-cover" src="https://i.loli.net/2019/11/10/T7Mu8Aod3egmC4Q.png" onerror="onerror=null;src='/docs/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">分组管理-列表</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="card-info-avatar is-center"><img class="avatar-img" src="/docs/img/avatar.png" onerror="this.onerror=null;this.src='/docs/img/friend_404.gif'" alt="avatar"/><div class="author-info__name">Da Xiong</div><div class="author-info__description">过去的代码都是未经测试的代码</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/docs/archives/"><div class="headline">文章</div><div class="length-num">14</div></a></div><div class="card-info-data-item is-center"><a href="/docs/tags/"><div class="headline">标签</div><div class="length-num">2</div></a></div><div class="card-info-data-item is-center"><a href="/docs/categories/"><div class="headline">分类</div><div class="length-num">8</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://gitee.com/andphp"><i class="fab fa-github"></i><span>Follow Me</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#admins%E3%80%90%E7%AE%A1%E7%90%86%E5%91%98%E8%A1%A8%E3%80%91"><span class="toc-number">1.</span> <span class="toc-text">admins【管理员表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#adsenses%E3%80%90%E5%B9%BF%E5%91%8A%E8%A1%A8%E3%80%91"><span class="toc-number">2.</span> <span class="toc-text">adsenses【广告表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#article-categorys%E3%80%90%E7%B1%BB%E7%9B%AE%E8%A1%A8%E3%80%91"><span class="toc-number">3.</span> <span class="toc-text">article_categorys【类目表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#articles%E3%80%90%E6%96%87%E7%AB%A0%E8%A1%A8%E3%80%91"><span class="toc-number">4.</span> <span class="toc-text">articles【文章表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#configs%E3%80%90%E9%85%8D%E7%BD%AE%E8%A1%A8%E3%80%91"><span class="toc-number">5.</span> <span class="toc-text">configs【配置表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#consultation-records%E3%80%90%E9%97%AE%E8%AF%8A%E5%AF%B9%E8%AF%9D%E8%A1%A8%E3%80%91"><span class="toc-number">6.</span> <span class="toc-text">consultation_records【问诊对话表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#consultations%E3%80%90%E9%97%AE%E8%AF%8A%E5%B7%A5%E5%8D%95%E8%A1%A8%E3%80%91"><span class="toc-number">7.</span> <span class="toc-text">consultations【问诊工单表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#feedback%E3%80%90%E6%84%8F%E8%A7%81%E5%8F%8D%E9%A6%88%E8%A1%A8%E3%80%91"><span class="toc-number">8.</span> <span class="toc-text">feedback【意见反馈表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#groups%E3%80%90%E5%88%86%E7%BB%84%E8%A1%A8%E3%80%91"><span class="toc-number">9.</span> <span class="toc-text">groups【分组表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#integrals%E3%80%90%E7%A7%AF%E5%88%86%E8%A1%A8%E3%80%91"><span class="toc-number">10.</span> <span class="toc-text">integrals【积分表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#levels%E3%80%90%E7%94%A8%E6%88%B7%E7%AD%89%E7%BA%A7%E8%A1%A8%E3%80%91"><span class="toc-number">11.</span> <span class="toc-text">levels【用户等级表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#logins%E3%80%90%E7%99%BB%E5%BD%95%E6%97%A5%E5%BF%97%E8%A1%A8%E3%80%91"><span class="toc-number">12.</span> <span class="toc-text">logins【登录日志表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#members%E3%80%90%E6%88%90%E5%91%98%E8%A1%A8%E3%80%91"><span class="toc-number">13.</span> <span class="toc-text">members【成员表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#ocr%E3%80%90%E5%8C%96%E9%AA%8C%E5%8D%95%E8%A1%A8%E3%80%91"><span class="toc-number">14.</span> <span class="toc-text">ocr【化验单表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#ocr-blood%E3%80%90%E5%8C%96%E9%AA%8C%E5%8D%95-%E8%A1%80%E5%B8%B8%E8%A7%84%E8%A1%A8%E3%80%91"><span class="toc-number">15.</span> <span class="toc-text">ocr_blood【化验单-血常规表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#ocr-then%E3%80%90%E5%8C%96%E9%AA%8C%E5%8D%95-%E4%BE%BF%E5%B8%B8%E8%A7%84%E8%A1%A8%E3%80%91"><span class="toc-number">16.</span> <span class="toc-text">ocr_then【化验单-便常规表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#ocr-urine%E3%80%90%E5%8C%96%E9%AA%8C%E5%8D%95-%E5%B0%BF%E5%B8%B8%E8%A7%84%E8%A1%A8%E3%80%91"><span class="toc-number">17.</span> <span class="toc-text">ocr_urine【化验单-尿常规表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#pages%E3%80%90%E5%8D%95%E9%A1%B5%E8%A1%A8%E3%80%91"><span class="toc-number">18.</span> <span class="toc-text">pages【单页表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#partners%E3%80%90%E5%90%88%E4%BD%9C%E5%95%86%E8%A1%A8%E3%80%91"><span class="toc-number">19.</span> <span class="toc-text">partners【合作商表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#roles%E3%80%90%E8%A7%92%E8%89%B2%E8%A1%A8%E3%80%91"><span class="toc-number">20.</span> <span class="toc-text">roles【角色表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#rules%E3%80%90%E8%A7%84%E5%88%99%E8%A1%A8%E3%80%91"><span class="toc-number">21.</span> <span class="toc-text">rules【规则表】</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#users%E3%80%90%E7%94%A8%E6%88%B7%E8%A1%A8%E3%80%91"><span class="toc-number">22.</span> <span class="toc-text">users【用户表】</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/docs/api/login/" title="登录">登录</a><time datetime="2021-04-07T17:42:47.000Z" title="发表于 2021-04-08 01:42:47">2021-04-08</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/docs/api/consultation/create/" title="创建图文问诊">创建图文问诊</a><time datetime="2021-04-07T17:42:47.000Z" title="发表于 2021-04-08 01:42:47">2021-04-08</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/docs/api/consultation/list/" title="获取问诊列表">获取问诊列表</a><time datetime="2021-04-07T17:42:47.000Z" title="发表于 2021-04-08 01:42:47">2021-04-08</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/docs/api/consultation/record/" title="获取 问诊 咨询记录（列表）">获取 问诊 咨询记录（列表）</a><time datetime="2021-04-07T17:42:47.000Z" title="发表于 2021-04-08 01:42:47">2021-04-08</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/docs/api/consultation/record_ask/" title="问诊-咨询提问">问诊-咨询提问</a><time datetime="2021-04-07T17:42:47.000Z" title="发表于 2021-04-08 01:42:47">2021-04-08</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2021 By Da Xiong</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div><div class="footer_custom_text">Hi, welcome to <a target="_blank" rel="noopener" href="http://andphp.com/">AndPHP</a>!</div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div></div><hr/><div id="local-search-results"></div><span class="search-close-button"><i class="fas fa-times"></i></span></div><div id="search-mask"></div></div><div><script src="/docs/js/utils.js"></script><script src="/docs/js/main.js"></script><script src="/docs/js/tw_cn.js"></script><script src="/docs/js/search/local-search.js"></script><script>var preloader = {
  endLoading: () => {
    document.body.style.overflow = 'auto';
    document.getElementById('loading-box').classList.add("loaded")
  },
  initLoading: () => {
    document.body.style.overflow = '';
    document.getElementById('loading-box').classList.remove("loaded")

  }
}
window.addEventListener('load',preloader.endLoading())</script><div class="js-pjax"></div><div class="aplayer no-destroy" data-id="5329614795" data-server="netease" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-preload="none" data-autoplay="true" muted></div><script defer="defer" id="ribbon" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-ribbon.min.js" size="150" alpha="0.6" zIndex="-1" mobile="false" data-click="false"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = true;
POWERMODE.mobile = false;
document.body.addEventListener('input', POWERMODE);
</script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script><script src="https://cdn.jsdelivr.net/gh/metowolf/MetingJS@1.2/dist/Meting.min.js"></script><script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script><script>let pjaxSelectors = [
  'title',
  '#config-diff',
  '#body-wrap',
  '#rightside-config-hide',
  '#rightside-config-show',
  '.js-pjax'
]

if (false) {
  pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]')
}

var pjax = new Pjax({
  elements: 'a:not([target="_blank"])',
  selectors: pjaxSelectors,
  cacheBust: false,
  analytics: false,
  scrollRestoration: false
})

document.addEventListener('pjax:complete', function () {
  window.refreshFn()

  document.querySelectorAll('script[data-pjax]').forEach(item => {
    const newScript = document.createElement('script')
    const content = item.text || item.textContent || item.innerHTML || ""
    Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
    newScript.appendChild(document.createTextNode(content))
    item.parentNode.replaceChild(newScript, item)
  })

  GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()

  typeof chatBtnFn === 'function' && chatBtnFn()
  typeof panguInit === 'function' && panguInit()

  // google analytics
  typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname});

  // baidu analytics
  typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]);

  typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()

  // Analytics
  if (false) {
    MtaH5.pgv()
  }

  // prismjs
  typeof Prism === 'object' && Prism.highlightAll()

  typeof preloader === 'object' && preloader.endLoading()
})


document.addEventListener('pjax:send', function () {
  typeof preloader === 'object' && preloader.initLoading()
  
  if (window.aplayers) {
    for (let i = 0; i < window.aplayers.length; i++) {
      if (!window.aplayers[i].options.fixed) {
        window.aplayers[i].destroy()
      }
    }
  }

  typeof typed === 'object' && typed.destroy()

  //reset readmode
  const $bodyClassList = document.body.classList
  $bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')

})

document.addEventListener('pjax:error', (e) => {
  if (e.request.status === 404) {
    pjax.loadUrl('/404.html')
  }
})</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>